home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-01-19 | 4.6 KB | 102 lines | [TEXT/ttxt] |
- Stair Draw
- Version 0.90 18-January-1987
- written by George Langdon
- assembled with Lightspeed Pascal
-
- INTRODUCTION
-
- Stair Draw draws a stair section based on the floor-to-floor height you
- enter and the layout selections you make. It is a great assist to architects
- who have to deal with such mundane things as stairs over and over.
-
- It was also an opportunity of me to develop an deep appreciation for the
- Macintosh ROM and the abilities of Lightspeed Pascal. You are welcome
- to borrow from the code to set up windows (complete with scroll
- bars), menus, and dialogs. In return, you can suggest ways to improve
- Stair Draw functionally and the efficiency of its code. Please leave
- messages on either at MacFido net 125 / node 444 in San Francisco
- (415/923-1235) or on BMUG in Berkeley (415//849-2684).
-
- USAGE
-
- Use Stair Draw to layout the vertical section for either a U-type or
- Straight run stair. It adjusts the tread dimension for varing riser heights,
- and calculates the important data (such as number risers, height, etc).
- Stair Draw will automatically add a landing in a straight-run stair that
- has a floor-to-floor height greater than 12'-0" (because that's what the
- code requires).
-
- You can save the stair section in the window by selecting Savefrom the
- Edit menu. Be certain your default disk is named Stair Disk; otherwise,
- Stair Draw will not be able to find the correct volume. The drawing is
- saved in MacPaint file format. You can open it with MacPaintor a DA such
- as PaintGrabber.
-
- You can change the scale of the stair section or the pen size from the
- appropriate menus; however, you must do so after OKing of CANCELing
- the Stair Data dialog. Select New from the Edit menu to draw a new stair
- section, using any new scale or pen size.
-
- DA's should work while using Stair Draw. Therefore, you can use the
- calculator to determine heights or PaintGrabber to select and copy the
- stair section directly to the Clipboard. I have not tried all DA's or
- FKEY's so I can not vouch for total compatibility. It is v0.90, afterall.
-
- LIMITATIONS
-
- Stair Draw is not complete. It's main limitation is that it does not allow
- you to select a file name to Save as... or to save more than one stair
- drawing at a time. Coming real soooon now! It would be a big help if
- someone knows how to save a file in MacDraw format. Any info or ideas?
-
- The future suggests that Stair Draw will also be able to draw the stair in
- plan as well as in section, offer options as to the start point, do three
- run stairs, and all those other things that architects hate to have to layout
- themselves. Of course, if it's that good, it ought to be worth something?
-
- HINTS
-
- Use Stair Draw to layout the stair section. Clip a copy to the clipboard or
- save it to the Scrapbook with PaintGrabber or FKEY #9, and then paste the
- section into MacDraw. Use MacDraw to duplicate the section and locate
- the copys end-to-end. Add vertical dimensions for floor-to-floor height
- and number of risers at riser dimension shown. Print the overall section
- on the ImageWriter or the LaserWriter. And there, the job is done.
-
- THE SCOURCE
-
- Stair Draw is written in Pascal and assembled using Lightspeed Pascal
- from Think. The scource is available if you wish to kibitz. There is
- the "Stair Project" and three units: "Stair_Globals", "Stair_Program",
- and "Stair_Main". Also included is "Stair Draw.rsrc" that contains the
- resources necessary to the program. You need Lightspeed Pascal to
- modify the scource and ResEdit to modify the resources.
-
- There is an "ICN#" resource in the .rsrc file. If you reassemble the source
- you need to use the command "Get Info" in ResEdit to show the file creator
- as "SDRW". Then the Desktop can locate the file's correct icon.
-
- If you are experienced in programming the Macintosh, I would appreciate
- your suggestions on improving the code. This is my first serious attempt,
- and I had many difficulties with such matters as updating regions, and
- the scroll bars bouncing back at their ends. I have not yet developed
- procedures to save the drawing to a file, so I have depended on the LSP
- standard procedure "SaveDrawing". This saves the window in MacPaint
- format, similar to Command-Shift-3. Any suggestions on saving the
- picture directly to the clipboard or in MacDraw file format would be
- helpful.
-
- FINAL COMMENTS
-
- In closing I want to thank Leo Laporte who encouraged me to get into it...
- even if he did say use assembly. Thanks also to Vernon Keenan (who's
- MacFido Tribune keeps me so well informed), and to Raines Cohen and
- the folks at BMUG.
-
- Let's all do it... write more Public Domain Software, that is.
-
- George Langdon
- Oakland, Ca
- January 18, 1987
-
-